<template>
  <div class="header">
    <my-input v-model="title"></my-input>
    <h1>{{ title }}</h1>
  </div>
</template>

<script>
import { ref, reactive, toRefs } from "vue";
import { useStore } from "vuex";
import { useRouter, useRoute } from "vue-router";
import myInput from "../components/myInput.vue";
export default {
  setup(props, ctx) {
    const store = useStore();
    const router = useRouter();
    const route = useRoute();
    const data = reactive({
      title: "",
    });
    return { ...toRefs(data) };
  },
  components: {
    myInput,
  },
};
</script>

<style lang="scss">
.header {
  height: 200px;
  width: 100%;
  background: #ccc;
}
</style>
